//
//  XTCase.m
//  BeautifulHome
//
//  Created by dlios on 15-5-13.
//  Copyright (c) 2015年 ACE. All rights reserved.
//

#import "XTCase.h"

@implementation XTCase
- (void)dealloc
{
    [_title release];
    [_date release];
    [_user release];
    [_userName release];
    [_userImage release];
    [_photos release];
    [_styleShow release];
    [_typeShow release];
    [_areaShow release];
    [_costShow release];
    [_mYdescription release];
    [_comment release];
    [_small release];
    [_pId release];
    [super dealloc];
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.userName forKey:@"userName"];
    [aCoder encodeObject:self.user forKey:@"user"];
    [aCoder encodeObject:self.styleShow forKey:@"styleShow"];
    [aCoder encodeObject:self.typeShow forKey:@"typeShow"];
    [aCoder encodeObject:self.areaShow forKey:@"areaShow"];
    [aCoder encodeObject:self.costShow forKey:@"costShow"];
    [aCoder encodeObject:self.mYdescription forKey:@"mYdescription"];
    [aCoder encodeObject:self.small forKey:@"small"];
    [aCoder encodeObject:self.comment forKey:@"comment"];
    [aCoder encodeObject:self.pId forKey:@"id"];
    [aCoder encodeObject:self.photos forKey:@"photos"];
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.userName = [aDecoder decodeObjectForKey:@"userName"];
        self.user = [aDecoder decodeObjectForKey:@"user"];
        self.styleShow = [aDecoder decodeObjectForKey:@"styleShow"];
        self.typeShow = [aDecoder decodeObjectForKey:@"typeShow"];
        self.areaShow = [aDecoder decodeObjectForKey:@"areaShow"];
        self.costShow = [aDecoder decodeObjectForKey:@"costShow"];
        self.mYdescription = [aDecoder decodeObjectForKey:@"mYdescription"];
        self.small = [aDecoder decodeObjectForKey:@"small"];
        self.comment = [aDecoder decodeObjectForKey:@"comment"];
        self.pId = [aDecoder decodeObjectForKey:@"pId"];
        self.photos = [aDecoder decodeObjectForKey:@"photos"];
    }
    return self;
}


- (instancetype)getData:(NSMutableDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
        
    }
    return self;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
